package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 时间数字类
 */
public class TimeBean implements Parcelable {
    private String num;
    private float x;
    private float y;

    public TimeBean(String num) {
        this.num = num;
    }

    public TimeBean(String num, float x, float y) {
        this.num = num;
        this.x = x;
        this.y = y;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.num);
        dest.writeFloat(this.x);
        dest.writeFloat(this.y);
    }

    protected TimeBean(Parcel in) {
        this.num = in.readString();
        this.x = in.readFloat();
        this.y = in.readFloat();
    }

    public static final Parcelable.Creator<TimeBean> CREATOR = new Parcelable.Creator<TimeBean>() {
        @Override
        public TimeBean createFromParcel(Parcel source) {
            return new TimeBean(source);
        }

        @Override
        public TimeBean[] newArray(int size) {
            return new TimeBean[size];
        }
    };
}
